import { axios } from '@/utils/request'
export function payslipList(params) {
    return axios({
        url: '/school/settlements',
        method: 'post',
        data: params
    })
}
//添加结算
export function addSettlement(params) {
    return axios({
        url: '/school/settlements/create',
        method: 'post',
        data: params
    })
}
//
//工资条项目列表
export function payslipItems(params) {
    return axios({
        url: '/school/payslip-items',
        method: 'post',
        data: params
    })
}
//添加工资条
export function addPayslipItems(params) {
    return axios({
        url: '/school/payslip-items/create',
        method: 'post',
        data: params
    })
}
export function delPayslipItems(id) {
    return axios({
        url: `/school/payslip-items/${id}/delete`,
        method: 'post',
    })
}
//结算详情
export function settlementsInfo(id) {
    return axios({
        url: `/school/settlements/${id}`,
        method: 'post',
    })
}
//结算详情设置员工工资
export function setSettlements(id,data) {
    return axios({
        url: `/school/settlements/${id}/set`,
        method: 'post',
        data
    })
}
//确认结算
export function setStatusSettlements(id,data) {
    return axios({
        url: `/school/settlements/${id}/set-status`,
        method: 'post',
        data
    })
}
//删除
export function deleteSettlements(id) {
    return axios({
        url: `/school/settlements/${id}/delete`,
        method: 'post',
    })
}
//导出
export function exportSettlements(id,data) {
    return axios({
        url: `/school/settlements/${id}/export`,
        method: 'post',
        data
    })
}
//查询表头
export function LookPayslipList(id) {
    return axios({
        url: `/school/settlements/${id}/payslips-list`,
        method: 'post',
    })
}
//上课绩效工资开启状态设置
export function achievementSetting(params) {
    return axios({
        url: '/school/salaries/achievement-setting',
        method: 'post',
        data: params
    })
}
//上课绩效工资开启状态获取
export function achievementGetSetting(params) {
    return axios({
        url: '/school/salaries/achievement-get-setting',
        method: 'post',
        data: params
    })
}
//绩效列表
export function achievementList(params) {
    return axios({
        url: '/school/achievements',
        method: 'post',
        data: params
    })
}
//导出
export function achievementExport(params) {
    return axios({
        url: '/school/achievements/export',
        method: 'post',
        data: params
    })
}
//员工工资
export function salariesList(params) {
    return axios({
        url: '/school/salaries',
        method: 'post',
        data: params
    })
}
//详情
export function salariesInfo(id) {
    return axios({
        url: `/school/salaries/${id}`,
        method: 'post',
        // data: params
    })
}
//到课人次计算规则获取
export function comingClassGetSetting(params) {
    return axios({
        url: '/school/salaries/coming-class-get-setting',
        method: 'post',
        data: params
    })
}
export function comingClassSetting(params) {
    return axios({
        url: '/school/salaries/coming-class-setting',
        method: 'post',
        data: params
    })
}
//教师授课课程或班级
export function teacherCourse(data) {
    return axios({
        url: '/school/settlements/teacher-course',
        method: 'post',
        data
    })
}
//设置员工工资
export function setSalaries(id,data) {
    return axios({
        url: `/school/salaries/${id}/set`,
        method: 'post',
        data
    })
}